import env
import mcrud
import ampractice
import amauth
import mauth
import snowflake

env.load("product.env")
# env.load(".env")
db = mcrud.new_env()

user_id = snowflake.idstr()
mauth.user.add(db, user_id, "gaoxiang", "gaoxiang123456")
mauth.user.update_active(db, user_id)
common_role_id = "1811379690914795521"
mauth.userrole.add(db, snowflake.idstr(), user_id, user_id)

user_id = snowflake.idstr()
mauth.user.add(db, user_id, "zhangqiang", "zhangqiang23456")
mauth.user.update_active(db, user_id)
mauth.userrole.add(db, snowflake.idstr(), user_id, user_id)
